package com.bps.zzant.controller;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.ModelAttribute;


//super class of all controllers
public class ZzantController {
	@ModelAttribute("userDetails")
	public Object getUser() {	      
		Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
		return principal;
	}
}
